import { defineConfig } from "vitepress";

export default defineConfig({
  title: "技术成神",
  description: "hello world",
  base: "/blog/",

  head: [["link", { rel: "icon", type: "image/svg+xml", href: "logo.svg" }]],
  lastUpdated: true,
  lastUpdatedText: 'Updated Date',
  themeConfig: {
    logo: "/logo.svg",
    nav: [
      { text: "首页", link: "/" },
      { text: "练习", link: "/test1/step1" }
    ],
    socialLinks: [{ icon: "github", link: "https://github.com/aehyok" }],
    footer: {
      message: "Released under the MIT License.",
      copyright: "Copyright © 2022-07-27～present jscs",
    },

    sidebar: {
      "/test1/": [
        {
          text: '搭建一个koa登录接口',
          collapsible: true,
          collapsed: true,
          items: [
            { text: "步骤1", link: "/test1/step1" },
            { text: "步骤2", link: "/test1/step2" },
          ]
        }
      ],
    },
  },
  vite: {
    server: {
      host: true,
      port: 3000,
      open: true,
    },
  },
});
